package com.doucat.support.component.permission;

import android.app.Activity;

/**
 * -----------------------------------------------------------------
 * Copyright (C) 2021-2031, by tonly, All rights reserved.
 * -----------------------------------------------------------------
 * File: ActivityPermission.java
 * Author: wangfy
 * Create: 2021/7/28 8:53
 */
public class ActivityPermission extends BasePermission{
    private Activity activity;

    public ActivityPermission(Activity activity) {
        this.activity = activity;
    }

    @Override
    public void requestPermissions(String[] permissions) {
        activity.requestPermissions(permissions, REQUEST_CODE_PERMISSION);
    }
}